/**
 * Cube inherits from RectangularPrism.  Cube includes methods to 
 * manipulate the single side of a cube.
 */
public class Cube extends RectangularPrism {
    //constructors
    public Cube() {
        super();
    }
    public Cube(double s) {
        super(s, s, s);
    }
    
    //getter
    public double getSide() {
        return super.getWidth();
    }
    
    //setter
    public void setSide(double s) {
        super.setWidth(s);
        super.setHeight(s);
        super.setDepth(s);
    }
}   